﻿namespace MobySharp.Actions
{
    public class CheckCredentials : BaseAction, IAction
    {
        private readonly string _password;
        private readonly string _username;

        public CheckCredentials(string username, string password)
        {
            _username = username;
            _password = password;

            RequestType = HTTPRequestType.Get;
            Action = APICall.checkCredentials;
        }

        [PostDataInstruction("u", true, 32)]
        public string Username
        {
            get { return _username; }
        }

        [PostDataInstruction("p", true, 32)]
        public string Password
        {
            get { return _password; }
        }
    }
}